triggersdir = $(libexecdir)/ostree/triggers.d
triggers_SCRIPTS = \
- src/triggers/triggers.d/dconf.trigger \
- src/triggers/triggers.d/desktop-database.trigger \
- src/triggers/triggers.d/gdk-pixbuf.trigger \
- src/triggers/triggers.d/gconf.trigger \
- src/triggers/triggers.d/glib.trigger \
- src/triggers/triggers.d/gtk+.trigger \
- src/triggers/triggers.d/immodules.trigger \
- src/triggers/triggers.d/ldconfig.trigger \
- src/triggers/triggers.d/mime-database.trigger \
- src/triggers/triggers.d/pango.trigger \
+ src/triggers/triggers.d/0001ldconfig.trigger \
+ src/triggers/triggers.d/0010mime-database.trigger \
+ src/triggers/triggers.d/0020dconf.trigger \
+ src/triggers/triggers.d/0030glib.trigger \
+ src/triggers/triggers.d/0040gdk-pixbuf.trigger \
+ src/triggers/triggers.d/0050gconf.trigger \
+ src/triggers/triggers.d/0060immodules.trigger \
+ src/triggers/triggers.d/0070pango.trigger \
+ src/triggers/triggers.d/0080gtk+.trigger \
+ src/triggers/triggers.d/0090desktop-database.trigger \
$(NULL)
bin_PROGRAMS += ostree-run-triggers
return ret;
}
+static int
+compare_files_by_basename (gconstpointer ap,
+ gconstpointer bp)
+{
+ GFile *a = (GFile*)ap;
+ GFile *b = (GFile*)ap;
+ char *name_a, *name_b;
+ int c;
-gboolean
-run_triggers (GError **error)
+ name_a = g_file_get_basename (a);
+ name_b = g_file_get_basename (b);
+ c = strcmp (name_a, name_b);
+ g_free (name_b);
+ g_free (name_a);
+ return c;
+}
+
+static gboolean
+get_sorted_triggers (GPtrArray **out_triggers,
+ GError **error)
{
gboolean ret = FALSE;
GError *temp_error = NULL;
GFile *triggerdir = NULL;
GFileInfo *file_info = NULL;
GFileEnumerator *enumerator = NULL;
+ GPtrArray *ret_triggers = NULL;
+
+ ret_triggers = g_ptr_array_new_with_free_func ((GDestroyNotify)g_object_unref);
triggerdir_path = g_build_filename (LIBEXECDIR, "ostree", "triggers.d", NULL);
triggerdir = g_file_new_for_path (triggerdir_path);
{
const char *name;
guint32 type;
- char *child_path = NULL;
- GFile *child = NULL;
- gboolean success;
name = g_file_info_get_attribute_byte_string (file_info, "standard::name");
type = g_file_info_get_attribute_uint32 (file_info, "standard::type");
if (type == G_FILE_TYPE_REGULAR && g_str_has_suffix (name, ".trigger"))
{
+ char *child_path;
+ GFile *child;
+
child_path = g_build_filename (triggerdir_path, name, NULL);
child = g_file_new_for_path (child_path);
+ g_free (child_path);
- success = check_trigger (child, error);
+ g_ptr_array_add (ret_triggers, child);
}
- else
- success = TRUE;
-
- g_object_unref (file_info);
- g_free (child_path);
- g_clear_object (&child);
- if (!success)
- goto out;
+ g_clear_object (&file_info);
}
if (file_info == NULL && temp_error != NULL)
{
g_propagate_error (error, temp_error);
goto out;
}
+
+ g_ptr_array_sort (ret_triggers, compare_files_by_basename);
ret = TRUE;
+ if (out_triggers)
+ {
+ *out_triggers = ret_triggers;
+ ret_triggers = NULL;
+ }
out:
g_free (triggerdir_path);
g_clear_object (&triggerdir);
g_clear_object (&enumerator);
+ if (ret_triggers)
+ g_ptr_array_unref (ret_triggers);
+ return ret;
+}
+
+gboolean
+run_triggers (GError **error)
+{
+ gboolean ret = FALSE;
+ int i;
+ GPtrArray *triggers = NULL;
+
+ if (!get_sorted_triggers (&triggers, error))
+ goto out;
+
+ for (i = 0; i < triggers->len; i++)
+ {
+ GFile *trigger = triggers->pdata[i];
+
+ if (!check_trigger (trigger, error))
+ goto out;
+ }
+
+ ret = TRUE;
+ out:
+ if (triggers)
+ g_ptr_array_unref (triggers);
return ret;
}
--- /dev/null
+#!/bin/sh
+# Post-installation hook for shared libraries. -*- mode: sh -*-
+#
+# Written by Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: ldconfig
+# REMatch: /lib.*/\.so.*
+
+ldconfig -r .
--- /dev/null
+#!/bin/sh
+# Post-installation hook for shared-mime-info. -*- mode: sh -*-
+#
+# Written by Matthias Clasen <mclasen@redhat.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: update-mime-database
+# REMatch: /mime/packages/.*\.xml
+
+exec update-mime-database ./usr/share/mime
--- /dev/null
+#!/bin/sh
+# Post-installation hook for system dconf schemas. -*- mode: sh -*-
+#
+# Written by Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: dconf
+# LiteralMatch: /etc/dconf/*
+
+exec dconf update
--- /dev/null
+#!/bin/sh
+# Post-installation hook for glib/gschema. -*- mode: sh -*-
+#
+# Written by Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: glib-compile-schemas
+# LiteralMatch: /share/glib-2.0/schemas/
+
+exec glib-compile-schemas ./usr/share/glib-2.0/schemas
--- /dev/null
+#!/bin/sh
+# Post-installation hook for gdk-pixbuf. -*- mode: sh -*-
+# Corresponds to gdk-pixbuf/gdk-pixbuf/Makefile.am:install-data-hook
+#
+# Written by Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: gdk-pixbuf-query-loaders
+# RequiresChroot: true
+# LiteralMatch: /gdk-pixbuf-2.0/2.10.0/loaders/
+
+exec gdk-pixbuf-query-loaders --update-cache
--- /dev/null
+#!/bin/sh
+# Post-installation hook for GConf. -*- mode: sh -*-
+#
+# Written by Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: gconftool-2
+# LiteralMatch: /etc/gconf
+
+GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+export GCONF_CONFIG_SOURCE
+
+for f in /etc/gconf/schemas/*.schemas; do
+ gconftool-2 --makefile-install-rule "$f"
+done
--- /dev/null
+#!/bin/sh
+# Post-installation hook for GTK+ input method modules. -*- mode: sh -*-
+#
+# Written by Matthias Clasen <mclasen@redhat.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: gtk-query-immodules-3.0
+# REMatch: /lib.*/gtk-3\.0/3\.0\.0/immodules/.*\.so
+
+gtk-query-immodules-3.0 --update-cache
--- /dev/null
+#!/bin/sh
+# Post-installation hook for pango. -*- mode: sh -*-
+# Corresponds to gdk-pixbuf/gdk-pixbuf/Makefile.am:install-data-hook
+#
+# Written by Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: pango-querymodules
+# REMatch: /lib.*/pango/.*/modules/.*\.so
+
+DEST=/etc/pango/pango.modules
+pango-querymodules --system > ${DEST}.tmp && mv ${DEST}.tmp ${DEST}
--- /dev/null
+#!/bin/sh
+# Post-installation hook for gtk icon cache. -*- mode: sh -*-
+#
+# Written by Colin Walters <walters@verbum.org>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: gtk-update-icon-cache
+# LiteralMatch: /share/icons/
+
+for dir in ./usr/share/icons/*; do
+ if test -f $dir/index.theme; then
+ if ! gtk-update-icon-cache --quiet $dir; then
+ echo "Failed to run gtk-update-icon-cache for $dir"
+ exit 1
+ fi
+ fi
+done
--- /dev/null
+#!/bin/sh
+# Post-installation hook for desktop files. -*- mode: sh -*-
+#
+# Written by Matthias Clasen <mclasen@redhat.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# IfExecutable: update-desktop-database
+# REMatch: /share/applications/.*/.*\.desktop
+
+exec update-desktop-database -q ./usr/share/applications
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for system dconf schemas. -*- mode: sh -*-
-#
-# Written by Colin Walters <walters@verbum.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: dconf
-# LiteralMatch: /etc/dconf/*
-
-exec dconf update
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for desktop files. -*- mode: sh -*-
-#
-# Written by Matthias Clasen <mclasen@redhat.com>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: update-desktop-database
-# REMatch: /share/applications/.*/.*\.desktop
-
-exec update-desktop-database -q ./usr/share/applications
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for GConf. -*- mode: sh -*-
-#
-# Written by Colin Walters <walters@verbum.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: gconftool-2
-# LiteralMatch: /etc/gconf
-
-GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-export GCONF_CONFIG_SOURCE
-
-for f in /etc/gconf/schemas/*.schemas; do
- gconftool-2 --makefile-install-rule "$f"
-done
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for gdk-pixbuf. -*- mode: sh -*-
-# Corresponds to gdk-pixbuf/gdk-pixbuf/Makefile.am:install-data-hook
-#
-# Written by Colin Walters <walters@verbum.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: gdk-pixbuf-query-loaders
-# RequiresChroot: true
-# LiteralMatch: /gdk-pixbuf-2.0/2.10.0/loaders/
-
-exec gdk-pixbuf-query-loaders --update-cache
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for glib/gschema. -*- mode: sh -*-
-#
-# Written by Colin Walters <walters@verbum.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: glib-compile-schemas
-# LiteralMatch: /share/glib-2.0/schemas/
-
-exec glib-compile-schemas ./usr/share/glib-2.0/schemas
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for gtk icon cache. -*- mode: sh -*-
-#
-# Written by Colin Walters <walters@verbum.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: gtk-update-icon-cache
-# LiteralMatch: /share/icons/
-
-for dir in ./usr/share/icons/*; do
- if test -f $dir/index.theme; then
- if ! gtk-update-icon-cache --quiet $dir; then
- echo "Failed to run gtk-update-icon-cache for $dir"
- exit 1
- fi
- fi
-done
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for GTK+ input method modules. -*- mode: sh -*-
-#
-# Written by Matthias Clasen <mclasen@redhat.com>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: gtk-query-immodules-3.0
-# REMatch: /lib.*/gtk-3\.0/3\.0\.0/immodules/.*\.so
-
-gtk-query-immodules-3.0 --update-cache
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for shared libraries. -*- mode: sh -*-
-#
-# Written by Colin Walters <walters@verbum.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: ldconfig
-# REMatch: /lib.*/\.so.*
-
-ldconfig -r .
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for shared-mime-info. -*- mode: sh -*-
-#
-# Written by Matthias Clasen <mclasen@redhat.com>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: update-mime-database
-# REMatch: /mime/packages/.*\.xml
-
-exec update-mime-database ./usr/share/mime
+++ /dev/null
-#!/bin/sh
-# Post-installation hook for pango. -*- mode: sh -*-
-# Corresponds to gdk-pixbuf/gdk-pixbuf/Makefile.am:install-data-hook
-#
-# Written by Colin Walters <walters@verbum.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# IfExecutable: pango-querymodules
-# REMatch: /lib.*/pango/.*/modules/.*\.so
-
-DEST=/etc/pango/pango.modules
-pango-querymodules --system > ${DEST}.tmp && mv ${DEST}.tmp ${DEST}